

cc.Class({
    
    ctor() {
    	this.canPlayLevel = 0 //当前能玩的最大关卡id
    	this.maxLevel = 9 //最后一个关卡的id

    	this.load()
    },

    load(){

    },

    save(){

    },

    setCanPlayLevel(level){
    	if (level>this.canPlayLevel) {
    		this.canPlayLevel = level
    		this.save()
    	}
    },

    isLastLevel(){
    	return this.canPlayLevel === this.maxLevel
    },

});
